package com.gem.growingtree.view;

import javax.security.auth.PrivateCredentialPermission;

import com.gem.growingtree.activity.R;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class Case_Item extends LinearLayout {
	// 声明每一个控件
	@ViewInject(R.id.case_time)
	private TextView case_time;
	@ViewInject(R.id.case_content)
	private TextView case_content;
	@ViewInject(R.id.case_button)
	private Button case_button;
	@ViewInject(R.id.case_image)
	private ImageView imageView;

	public Case_Item(Context context) {
		super(context);
		init();
	}

	public Case_Item(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		init();
		// TODO Auto-generated constructor stub
	}

	public Case_Item(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
	}

	public TextView getCase_content() {
		return case_content;
	}

	public void init() {
		View.inflate(getContext(), R.layout.case_item, this);
		ViewUtils.inject(this);
	}

	public void setCase_time(String case_time) {
		this.case_time.setText(case_time);
	}

	public void setCase_content(String case_content) {
		this.case_content.setText(case_content);
	}

}
